home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / Gadgets / CSliders.h < prev    next >
Text File  |  1996-03-19  |  1KB  |  58 lines

  1. // CSliders.h -- window class
  2. // Created 3/19/96 12:49 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LWindow.h>
  7. #include <LListener.h>
  8.  
  9. class    CGadgetsData;
  10. class    LStream;
  11.  
  12. class    LStdControl;
  13.  
  14. //----------
  15. class    CSliders :    public LWindow,
  16.                         public LListener {
  17. public:
  18.     static    CSliders*    CreateSliders        (LCommander            *inSuperCommander,
  19.                                                      CGadgetsData    *inData);
  20.  
  21.     static    CSliders*    CreateSlidersStream    (LStream    *inStream);
  22.  
  23.                         CSliders();
  24.                         CSliders        (LStream    *inStream);
  25.     virtual                ~CSliders();
  26.  
  27.     virtual void        ListenToMessage        (MessageT    inMessage,
  28.                                              void        *ioParam);
  29.  
  30.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  31.                                              void        *ioParam = nil);
  32.     virtual void        FindCommandStatus    (CommandT    inCommand,
  33.                                              Boolean    &outEnabled,
  34.                                              Boolean    &outUsesMark,
  35.                                              Char16        &outMark,
  36.                                              Str255        outName);
  37.     virtual Boolean        FocusDraw();
  38.  
  39. protected:
  40.     static    void        RegisterClass();
  41.     virtual void        FinishCreateSelf();
  42.     virtual void        ConnectToData    (CGadgetsData    *inData);
  43.  
  44. protected:
  45.  
  46. protected:
  47.     static Boolean        sIsRegistered;
  48.  
  49.     CGadgetsData        *mData;
  50.  
  51. // Panes in this window:
  52.     LStdControl*        mVerticalScroll;
  53.     LStdControl*        mSliderScroll;
  54.     LStdControl*        mSpinnerScroll;
  55.     LStdControl*        mHorizontalScroll;
  56.     LStdControl*        mPictSliderScroll;
  57. };
  58.